package com.ly.spring;

public class Demo {

    private String name;

    public void hello() {
        System.out.println("Hello "+ name + "!");
    }

    public  void  init(){
        System.out.println("初始化方法:"+name);
    }

    public  void  destroy(){
        System.out.println("销毁方法:"+name);
    }




    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
